package cn.wsalix.admin.service;

import java.util.List;
import java.util.Observer;

import cn.anlaser.service.CommonService;
import cn.wsalix.admin.entity.SysRole;
import cn.wsalix.admin.entity.SysUser;
import cn.wsalix.admin.form.UserForm;
import cn.wsalix.admin.repository.UserRepository;

public interface UserService extends CommonService<UserForm,UserRepository, SysUser>,Observer {

	SysUser findByUsername(String username);

	String sendSms(UserForm entity);

	List<SysUser> findUnUsersByRoleId(Long roleId);
	
	List<SysUser> findUsersByRoleId(Long roleId);

	SysUser editPwd(UserForm entity);

	SysUser editPwdByUserName(UserForm entity);

/*	int findWxUserCount();*/

	void updateUserRole(Long userId);

	void onLogout(Long userId);

	void setRole(Long userId, SysRole role);

	SysUser getByCurr();

}
